package com.woniuxy.happylife.datastore.service.impl;

import com.woniuxy.happylife.datastore.dao.ActiveDao;
import com.woniuxy.happylife.datastore.service.ActiveService;
import com.woniuxy.happylife.entity.ActivityRelease;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 活动查询service
 */
@Service
public class ActiveServiceImpl implements ActiveService {

    @Resource
    ActiveDao activeDao;

    /**
     * 查询所有活动
     * @return
     */
    @Override
    public List<ActivityRelease> active() {
        return activeDao.activity();
    }
}
